<template>
  <Button @click="render">自定义内容</Button>
</template>
<script>
  export default {
    data () {
      return {
        value: ''
      }
    },
    methods: {
      render () {
        this.$Modal.confirm({
          render: (h) => {
            return h('Input', {
              props: {
                value: this.value,
                autofocus: true,
                placeholder: '请输入昵称'
              },
              on: {
                input: (val) => {
                  this.value = val;
                }
              }
            })
          }
        })
      }
    }
  }
</script>
